package com.ecp.pay.online.bean;

import com.ecp.commons.annotation.VariantType;
import com.ecp.commons.serialization.GenericBean;
import com.ecp.commons.serialization.Variant;

public class WangyinBank extends GenericBean {
	
	public static final int TYPE_JIEJI = 1;				//借计卡类型
	
	public static final int TYPE_XINYONG = 2;			//信用卡类型
	
	@Override
	public void defineVariantSet() {
		this.entity = "wangyin_bank";
		this.map.put("id", new Variant().setType(VariantType.INTEGER).setPk(true).setNullable(false));
		this.map.put("name", new Variant().setType(VariantType.STRING));
		this.map.put("typeId", new Variant().setType(VariantType.INTEGER));
		this.map.put("code", new Variant().setType(VariantType.STRING));
		this.map.put("logo", new Variant().setType(VariantType.STRING));
	}

	@Override
	public void resetValues() {
		this.set("id", "");
		this.set("name", "");
		this.set("typeId", "");
		this.set("code", "");
		this.set("logo", "");
	}

	public int getId() {
		return this.getInt("id");
	}

	public String getName() {
		return this.getString("name");
	}

	public int getTypeId() {
		return this.getInt("typeId");
	}

	public String getCode() {
		return this.getString("code");
	}

	public String getLogo() {
		return this.getString("logo");
	}

	public void setId(int id) {
		this.set("id", id);
	}

	public void setName(String name) {
		this.set("name", name);
	}

	public void setTypeId(int typeId) {
		this.set("typeId", typeId);
	}

	public void setCode(String code) {
		this.set("code", code);
	}

	public void setLogo(String logo) {
		this.set("logo", logo);
	}
}
